package com.talkingdata.hadoop.guard.bean;

public class XmlConfig {
    private int id;                    // 编号
    private String serviceId;           // 集群名称
    private String confDir;             // 配置文件目录
    private Boolean kerberos;           // 启用kerberos
    private String kerberosUser;        // kerberos 用户
    private String kerberosKeytab;      // keytab文件
    private String scheduler;           // Yarn 队列策略
    private String version;             // 版本

    @Override
    public java.lang.String toString() {
        return "XmlConfig{" +
                "serviceId='" + serviceId + '\'' +
                ", confDir='" + confDir + '\'' +
                ", kerberos=" + kerberos +
                ", kerberosUser='" + kerberosUser + '\'' +
                ", kerberosKeytab='" + kerberosKeytab + '\'' +
                ", scheduler='" + scheduler + '\'' +
                ", version='" + version + '\'' +
                '}';
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public XmlConfig(String serviceId, String confDir, Boolean kerberos, String kerberosUser, String kerberosKeytab, String scheduler, String version) {
        this.serviceId = serviceId;
        this.confDir = confDir;
        this.kerberos = kerberos;
        this.kerberosUser = kerberosUser;
        this.kerberosKeytab = kerberosKeytab;
        this.scheduler = scheduler;
        this.version = version;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getConfDir() {
        return confDir;
    }

    public void setConfDir(String confDir) {
        this.confDir = confDir;
    }

    public Boolean getKerberos() {
        return kerberos;
    }

    public void setKerberos(Boolean kerberos) {
        this.kerberos = kerberos;
    }

    public String getKerberosUser() {
        return kerberosUser;
    }

    public void setKerberosUser(String kerberosUser) {
        this.kerberosUser = kerberosUser;
    }

    public String getKerberosKeytab() {
        return kerberosKeytab;
    }

    public void setKerberosKeytab(String kerberosKeytab) {
        this.kerberosKeytab = kerberosKeytab;
    }

    public String getScheduler() {
        return scheduler;
    }

    public void setScheduler(String scheduler) {
        this.scheduler = scheduler;
    }

    public XmlConfig() {
    }
}
